package cn.cai.service.impl;

import cn.cai.mapper.ReportLogMapper;
import cn.cai.pojo.ReportLog;
import cn.cai.service.ReportLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.util.ObjectUtils;

@Service
public class ReportLogServiceImpl implements ReportLogService {

    @Autowired
    private ReportLogMapper reportLogMapper;

    /**
     * 添加一条日志
     * @param log 日志对象
     */
    @Override
    public void addLog(ReportLog log) {
        if (!ObjectUtils.isEmpty(log)){
            reportLogMapper.addLog(log);
        }
    }
}
